#include "EffectManager.h"

#include "SpheresEffect.h"
#include "CubeMapSphereEffect.h"
#include "SkyEffect.h"

namespace D3D10Effects
{
    SpheresEffect* EffectManager::mSpheresEffect = nullptr;
    CubeMapSphereEffect* EffectManager::mCubeMapSphereEffect = nullptr;
    SkyEffect* EffectManager::mSkyEffect = nullptr;

    void EffectManager::initAll(ID3D10Device * const device)
    {
        mSpheresEffect = new SpheresEffect(device, L"StaticCubeMapping/spheres.fx");
        mCubeMapSphereEffect = new CubeMapSphereEffect(device, L"StaticCubeMapping/cubeMapSphere.fx");
        mSkyEffect = new SkyEffect(device, L"StaticCubeMapping/sky.fx");
    }
	void EffectManager::destroyAll()
    {
        delete mSpheresEffect;
        delete mCubeMapSphereEffect;
        delete mSkyEffect;
    }
}
